package qb.spring.springBean;


import org.junit.Test;
import qb.spring.springBean.domain.school;

public class myTest1 {
    @Test
    public void test(){
        ApplicationContext context = new ClassPathXmlApplicationContext("autoBean.xml");
        school school = context.getBean("school",school.class);
        school.getSchoolName().shout();
        school.getFoundingYear().shout();
        school.getPrincipal().shout();
    }

}
